package com.bsoft.gol.hcs.common.dao;


import com.bsoft.gol.hcs.common.entity.FusMedicalRecords;
import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;

import java.util.List;

public abstract class FusMedicalRecordsDAO extends HibernateSupportDelegateDAO<FusMedicalRecords> {

	@DAOMethod(sql = " from FusMedicalRecords where fusMedicalRecordsId in in (:Ids) ")
	public abstract List<FusMedicalRecords> queryByIds(@DAOParam("Ids") List<Long> Ids);

	@DAOMethod(sql = " from FusMedicalRecords where organizationId =:organizationId and recordsId =:recordsId " +
			"and recordsType =:recordsType ")
	public abstract List<FusMedicalRecords> queryFusMedicalRecords(@DAOParam("organizationId") String organizationId,
																   @DAOParam("recordsId") String recordsId,
																   @DAOParam("recordsType") int recordsType);
}
